package SistemaDeArchivos;

import org.joda.time.DateTime;

public class Archivo implements FyleSystem {

	private String name;
	private Integer size;
	private DateTime lastModif;
	private DateTime makeTime;

	public Archivo(String name) {

		this.name = name;
		this.size = 5;
		lastModif = DateTime.now();
		makeTime = DateTime.now();
	}

	public DateTime makeTime() {

		return makeTime;
	}

	public String name() {
		return name;
	}

	@Override
	public int totalSize() {
		return size;
	}

	@Override
	public void printStructure() {

		System.out.print("-" + name);
	}

	@Override
	public Archivo lastModified() {

		return this;
	}

	@Override
	public FyleSystem oldestElement() {

		return this;
	}

	@Override
	public DateTime lastModification() {
		return this.lastModif;
	}

	

}
